package com.taxi.driver.data.config.remote;

import com.taxi.driver.api.CommonApi;
import com.taxi.driver.data.config.ConfigSource;
import com.taxi.driver.data.entity.ConfigEntity;
import com.taxi.driver.data.entity.GovernEntity;

import java.util.List;

import javax.inject.Inject;

import rx.Observable;

public class ConfigRemoteSource implements ConfigSource {

    private final CommonApi mCommonApi;

    @Inject
    ConfigRemoteSource(CommonApi commonApi) {
        mCommonApi = commonApi;
    }

    @Override
    public Observable<List<ConfigEntity>> variable() {
        return mCommonApi.variable();
    }

    @Override
    public Observable<GovernEntity> getGovern() {
        return mCommonApi.getGovern();
    }

    @Override
    public void saveAbout(String value) {

    }

    @Override
    public String getAbout() {
        return null;
    }

    @Override
    public void savePriceRules(String value) {

    }

    @Override
    public String getPriceRules() {
        return null;
    }

    @Override
    public void saveRuleExplain(String value) {

    }

    @Override
    public String getRuleExplain() {
        return null;
    }

    @Override
    public void saveAgress(String value) {

    }

    @Override
    public String getAgress() {
        return null;
    }

    @Override
    public Observable<String> removePayCache(String orderUuid) {
        return mCommonApi.removePayCache(orderUuid);
    }

    @Override
    public Observable<String> payCallback(String orderUuid) {
        return mCommonApi.payCallback(orderUuid);
    }
}